package v1

import (
	"cheater_zero/ScreenWatcher"

	"github.com/gin-gonic/gin"
)

func GetCurrentScreenShot(c *gin.Context) {

	c.Header("Pragma", "no-cache")

	c.Header("Expires", "")

	c.Header("Cache-Control", "no-cache")
	c.Data(200, "image/png", []byte(ScreenWatcher.GetImage()))

}
